package com.oi.test01.hw;

import java.lang.reflect.Field;

/**
 * @author bin
 * @date 2025 - 03 -17
 * 遍历Integer类中所有的字段，格式如下所示
 **/
public class MainTest03 {
    public static void main(String[] args) {
        Class<Integer> integerClass = Integer.class;

        Field[] fields = integerClass.getDeclaredFields();

        for (Field field : fields) {
            System.out.println(field.getName());
        }

    }
}
